package com.cssl.domain.dto;

import java.math.BigDecimal;
import java.util.Arrays;

public class PaymentParam {
    /**
    订单状态
     */
    Integer status;
    /**
     * 跳转路径
     */
    private String returnUrl;
    /**
     * 订单号
     */
    private String outTradeNo;
    /**
     * 支付金额
     */
    private BigDecimal totalAmount;
    /**
     * 商品名称
     */
    private String[] subject;
    /**
     * 支付类型 手机：QUICK_WAP_WAY 电脑：FAST_INSTANT_TRADE_PAY
     */
    private String productCode;
    /**
    数据库订单
     */
    private String oId;
    /**
    总金额
     */
    private double money;


    public PaymentParam() {
    }

    public PaymentParam(Integer status, String returnUrl, String outTradeNo, BigDecimal totalAmount, String[] subject, String productCode, String oId, double money) {
        this.status = status;
        this.returnUrl = returnUrl;
        this.outTradeNo = outTradeNo;
        this.totalAmount = totalAmount;
        this.subject = subject;
        this.productCode = productCode;
        this.oId = oId;
        this.money = money;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String[] getSubject() {
        return subject;
    }

    public void setSubject(String[] subject) {
        this.subject = subject;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "PaymentParam{" +
                "status=" + status +
                ", returnUrl='" + returnUrl + '\'' +
                ", outTradeNo='" + outTradeNo + '\'' +
                ", totalAmount=" + totalAmount +
                ", subject=" + Arrays.toString(subject) +
                ", productCode='" + productCode + '\'' +
                ", oId='" + oId + '\'' +
                ", money=" + money +
                '}';
    }
}
